A Tutorial on Visio for Structure Charts

Visio is a software package that can be used to develop almost any kind of diagram or chart related to Computer Science or other technical drawing areas. Here we will discuss one of the simpler uses for this tool - to develop a structure chart.

When you first open Visio, a screen is displays that asks you to choose a "Drawing Template". A template in Visio is a set of symbols that one can drag and drop onto a drawing area to form a diagram of shapes and links connecting shapes. For structure charts the shapes are rectangles and the links are lines that connect the rectangles.

T0 get the best template for creating structure charts, click on "Software Diagram" and then on "Program Structure.VST".

A screen opens with a drawing area on the right and sets of shapes and "connectors" (links) on the left. If you look closely above the shapes on the left you will see two lines, one labeled "Language Level Shapes" and the other "Connectors". The shapes you can see are part of "Language Level Shapes". If you click on the word "Connectors", you will discover a set of different ways to connect shapes. Note that the line "Language Level Shapes" is now at the bottom of the left side. You can click back and forth between the two set of choices.

The drawing box on the right may be too small, with lots of unused blue space. Look up at the top right hand corner of Visio. You should see a box with a percentage in it - probably 33% or 50%. You can increase the size of your image by changing this percentage. On most screen 75% is a good size to work with.

We are now ready to draw a structure chart. Click on the "Function/subroutine" shape under "Language Level Shapes" and drag it over to the drawing area. Place the shape where you want it and go back for as many as you want, placing each one in its appropriate location.

When this is finished, change to the set of connectors. In the second row, first column you should see a connector labeled "Bottom to top 1". This one works well for structure charts. Click on it and drag it across to the drawing area so that the upper edge of the line is touching the middle '*' of the rectangle you want to line to come from. When you lift the mouse button you will see a red box on the upper edge of the line, hopefully on the spot you want it to be. Put your mouse over the other box (probably green) for the same line and drag the box to the '*' on the rectangle you want the line to go to. When you lift the mouse button, the line should connect the two rectangles. Do this with all your rectangles to create the structure chart you want. Note that it is possible to move rectangles while keeping the lines connected. Simply click on the rectangle and drag it where you want. It is also possible to delete a rectangle or line by clicking on it and hitting the delete key.

In order to draw in a rectangle, you simply click on it twice. The rectangle should become "dotted" with your cursor in the middle. What you type will go where the cursor is. The font size is likely to be too small. To fix this and/or change the font type, look for the appropriate option box in the third row from the top of Visio. You can also change the size of a rectangle in the structure chart by clicking on it once. The rectangle will now appear with a series of green boxes. Each of these represents a point where you can use the mouse to stretch or shrink the rectangle. (NOTE: to get out of character entry mode and into the mode from which you can get to this feature, click outside all shapes. Any shape with dotted lines should return to 'normal', allowing you to proceed as you want.)

There are many features of Visio and you are encouraged to play with the program, read the manuals available in the lab, or use the on-line help. Warning: Visio is a sophisticated program which means both that it provides numerous options and that it allows one to get into a real mess. Good Luck and don't hesitate to ask for help.